# -*- encoding: utf-8 -*-


class Queue():
    def __init__(self):
        self.entries = []

    def __str__(self):
        return '<' + str(self.entries) + '>'

    def put(self, item):
        self.entries.append(item)

    def get(self):
        dequeued = self.entries[0]
        self.entries = self.entries[1:]
        return dequeued

    def rotate(self, rotation):
        for i in range(rotation):
            self.put(self.get())

    def size(self):
        return len(self.entries)


if __name__ == '__main__':
    q = Queue()
    q.put(1)
    q.put(2)
    q.put(3)
    q.put(4)
    q.put(5)
    q.put(10)
    q.get()
    print(q)
    q.rotate(1)
    print(q)
    q.rotate(1)
    print(q)
    q.rotate(1)
    print(q)
    q.rotate(1)
    print(q)
    q.rotate(1)
    print(q)


